import request from '@/utils/request'

// 查询费用类型列表
export function listFeiyongleixing(query) {
  return request({
    url: '/order/expenseType/list',
    method: 'get',
    params: query
  })
}

// 查询费用类型详细
export function getFeiyongleixing(id) {
  return request({
    url: '/order/expenseType/' + id,
    method: 'get'
  })
}

// 新增费用类型
export function addFeiyongleixing(data) {
  return request({
    url: '/order/expenseType',
    method: 'post',
    data: data
  })
}

// 修改费用类型
export function updateFeiyongleixing(data) {
  return request({
    url: '/order/expenseType',
    method: 'put',
    data: data
  })
}

// 删除费用类型
export function delFeiyongleixing(id) {
  return request({
    url: '/order/expenseType/' + id,
    method: 'delete'
  })
}

// 启用/停用费用类型
export function changeFeiyongleixingStatus(id) {
  return request({
    url: '/order/expenseType/enable/' + id,
    method: 'put',
   
  })
} 